package ${packageCode}.api.vx.${moduleMapperCode}.${(businessCode?uncap_first)!''}

import org.apache.commons.lang3.StringUtils
import ${packageCode}.${moduleMapperCode}.service.${businessCode}Service
import top.cardone.context.ApplicationContextHolder
import top.cardone.core.CodeException

class d0001 implements java.io.Serializable {
    def input(input) {
        def ${(businessCode?uncap_first)!''}Ids = input?.${(businessCode?uncap_first)!''}Ids?.split(",")

        if (!${(businessCode?uncap_first)!''}Ids) {
            throw new CodeException("${(businessCode?uncap_first)!''}Ids required", "${businessName}标识集合必填")
        }

        def ${(businessCode?uncap_first)!''}IdList = []

        for (def ${(businessCode?uncap_first)!''}Id : ${(businessCode?uncap_first)!''}Ids) {
            ${(businessCode?uncap_first)!''}IdList.add(["${(businessCode?uncap_first)!''}Id": ${(businessCode?uncap_first)!''}Id, "flagCode": "input", "dataStateCode": "0", "endDate": new Date()])
        }

        ["${(businessCode?uncap_first)!''}Ids": ${(businessCode?uncap_first)!''}IdList]
    }

    def validation(input) {
    }

    def func(input) {
        ApplicationContextHolder.getBean(${businessCode}Service.class).updateListCache(input?.${(businessCode?uncap_first)!''}Ids)
    }

    def output(output) {
        ['deleteCounts': output]
    }
}